#include "CustomMesh.h"

CustomMesh::CustomMesh()
	: mFx(0)
	, mErrors(0)
	, mIB(0)
	, mVB(0)

{
}

CustomMesh::~CustomMesh()
{
	ReleaseCOM(mVB);
	ReleaseCOM(mIB);
	ReleaseCOM(mFx);
	ReleaseCOM(mErrors);
}

void CustomMesh::OnLostDevice()
{
	if (mFx) {
		mFx->OnLostDevice();
	}
}

void CustomMesh::OnResetDevice()
{
	if (mFx) {
		mFx->OnResetDevice();
	}
}

